//
// Created by lenovo on 25-5-1.
//

#ifndef OBJ_STUDY5_BUILDING_H
#define OBJ_STUDY5_BUILDING_H
#include "iostream"
#include "string"
#include "GoodGay.h"
using  namespace std;

// 前向声明
class GoodGay;
class Building {
    friend void goodGay(Building &building);//全局函数做友元
    friend class Person;//友元类
    //friend class GoodGay;//将整个GoodGay类设为友元
    friend void GoodGay::visit();//将GoodGay类中的visit()成员函数设为友元
public:
    Building(){
        m_SittingRoom = "客厅";
        m_BeddRoom = "卧室";
    }
public:
    string m_SittingRoom;
private:
    string m_BeddRoom;
};


#endif //OBJ_STUDY5_BUILDING_H
